//
//  HQMapPositionModel.m
//  o_amap
//
//  Created by Q神 on 2021/4/16.
//

#import "HQMapPositionModel.h"

@implementation HQMapPositionModel

- (void)setPosition:(MAMapView *)mapView {
    CLLocationCoordinate2D center = self.target ? CLLocationCoordinate2DMake([self.target.latitude floatValue], [self.target.longitude floatValue]) : CLLocationCoordinate2DMake(39.941711, 116.382248);
    [mapView setCenterCoordinate:center animated:YES];
    [mapView setZoomLevel:self.zoom];
}

@end
